class CreateItems < ActiveRecord::Migration
  def change
    create_table :items do |t|
      t.string :title
      t.text :description
      t.decimal :price
      t.boolean :negociate
      t.boolean :sending
      t.boolean :product
      t.references :what
	  t.references :user

      t.timestamps
    end
    add_index :items, :what_id
	add_index :items, :user_id
  end
end
